<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<base th:href="@{/}">
	<meta charset="utf-8">
	<title></title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="static/layui/css/layui.css" media="all" />
	<script type="text/javascript" src="static/plugin/jquery/jquery-1.4.4.min.js"></script>
	<script type="text/javascript" src="static/layui/layui.js"></script>
	<script type="text/javascript" src="static/js/common/reportTemplet.js"></script>
	<script type="text/javascript" src="static/js/process_price/index.js"></script>
</head>
<body class="layui-fluid">

	<div style="padding: 10px; background-color: #F2F2F2; height: 97%;">
		<div class="layui-row layui-col-space12" style="height: 100%;">
			<div class="layui-col-md12" style="height: 100%;">
				<div class="layui-card">
					<div class="layui-card-header">订单工序列表</div>
					<div class="layui-row" style="margin-left: 10px;">
						<div id="findMsg" >查询条件：</div>	
					</div>
					<div class="layui-row" style="margin-top: 5px;">
					    <div class="layui-col-md12">
							<table id="table" class="layui-table" lay-filter="table"></table>
				        </div>
					</div>
				</div>
			</div>
			<div class="layui-col-md5" style="height: 100%;display: none;">
				<div class="layui-card">
					<div class="layui-card-header">生产工序列表</div>
					<div class="layui-row" style="margin-top: 25px;">
					    <div class="layui-col-md12">
							<table id="produceTable" class="layui-table" lay-filter="produceTable"></table>
				        </div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="layui-form-item" style="display: none">
		<div class="layui-inline">
			<div class="layui-upload-drag" id="uploadExcel">
				<i class="layui-icon"></i>
				<p>点击上传，或将文件拖拽到此处</p>
			</div>
		</div>
	</div>
	<script type="text/html" id="customer">
		<select lay-search>
			<option value=""></option>
			<option th:each="c:${customer}" th:value="${c.code}" th:text="${c.name}"></option>
		</select>
	</script>

	<script type="text/html" id="product">
		<select lay-search>
			<option value=""></option>
			<option th:each="c:${product}" th:value="${c.code}" th:text="${c.name}"></option>
		</select>
	</script>

	<script type="text/html" id="process">
		<select lay-search>
			<option value=""></option>
			<option th:each="c:${process}" th:value="${c.code}" th:text="${c.name}"></option>
		</select>
	</script>
	<script type="text/html" id="tableToolbar">
		<div class="layui-inline" shiro:hasPermission="btn:order_add">
			<button class="layui-btn layui-btn-sm" lay-event="add"><i class="layui-icon">&#xe654;</i>添加</button>
		</div>
		<div class="layui-inline" shiro:hasPermission="btn:order_edit">
			<button class="layui-btn layui-btn-sm" lay-event="upd"><i class="layui-icon">&#xe642;</i>修改</button>
		</div>
		<div class="layui-inline" shiro:hasPermission="btn:order_delete">
			<button class="layui-btn layui-btn-sm" lay-event="del"><i class="layui-icon">&#xe640;</i>删除</button>
		</div>
		<div class="layui-inline" shiro:hasPermission='btn:order_save'>
			<button class="layui-btn layui-btn-sm" lay-event="save"><i class="layui-icon">&#xe681;</i>数据导入</button>
		</div>
		<div class="layui-inline" shiro:hasPermission="btn:order_download">
			<button class="layui-btn layui-btn-sm" lay-event="download"><i class="layui-icon">&#xe601;</i>数据导出</button>
		</div>
		<button type="button" lay-event="find"
			class="layui-btn layui-btn-primary layui-btn-sm">
			<i class="layui-icon">&#xe615;</i> 查询
		</button>
	</script>
	<script type="text/html" id="produceTableToolbar">
		<div class="layui-inline" shiro:hasPermission="btn:produce_add">
			<button class="layui-btn layui-btn-sm" lay-event="produce_add"><i class="layui-icon">&#xe654;</i>添加</button>
		</div>
		<div class="layui-inline" shiro:hasPermission="btn:produce_edit">
			<button class="layui-btn layui-btn-sm" lay-event="produce_upd"><i class="layui-icon">&#xe642;</i>修改</button>
		</div>
		<div class="layui-inline" shiro:hasPermission="btn:produce_delete">
			<button class="layui-btn layui-btn-sm" lay-event="produce_del"><i class="layui-icon">&#xe640;</i>删除</button>
		</div>
	</script>
	<script type="text/html" id="LAY-excel-export-ans">
		{{# layui.each(d.data, function(file_index, item){ }}
		<blockquote class="layui-elem-quote">{{d.files[file_index].name}}</blockquote>
		<div class="layui-tab" lay-filter="sheet">
			<ul class="layui-tab-title">
				{{# layui.each(item, function(sheet_name, content) { }}
				<li lay-id="{{sheet_name}}">{{sheet_name}}</li>
				{{# }); }}
			</ul>
			<div class="layui-tab-content">
				{{# layui.each(item, function(sheet_name, content) { }}
				<div class="layui-tab-item">
					<table class="layui-table">
						{{# layui.each(content, function(row_index, value) { }}
						{{# var col_index = 0 }}
						<tr>
							{{# layui.each(value, function(col_key, val) { }}
							<td id="table-export-{{file_index}}-{{sheet_name}}-{{row_index}}-{{col_index++}}">{{val}}</td>
							{{# });}}
						</tr>
						{{# });}}
					</table>
				</div>
				{{# }); }}
			</div>
		</div>
		{{# }) }}
	</script>
</body>
</html>